const BESE_URL='http://localhost:8082'
export const myRequest =(options)=>{
	return new 	Promise((resolve,reject)=>{
		uni.request({
			url: BESE_URL+options.url,
			method: options.method||'GET',
			data: options.data||{},
			success: (res) => {
				if(res.data.status!==0){
					return uni-uni.showToast({
						title: '获取数据失败'
					});
				}
				resolve(res)
			},
			fail: (err) => {
				uni-uni.showToast({
					title: '请求接口失败'
				});
			},
			complete: () => {}
		});
	})
}